/*三位数反转（1）*/

#include <stdio.h>

int main(void){
	int n;

	scanf("%d", &n);

	printf("%d%d%d\n", n%10, n/10%10, n/100);

	return 0;
}